﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;

namespace Surging.Core.Common
{
    /// <summary>
    /// 环信历史消息保存dto
    /// </summary>
    /// <typeparam name="T"></typeparam>
    [DataContract]
    public class HxMsgSaveDto<T>
    {
        /// <summary>
        /// 消息体
        /// </summary>
        [DataMember]
        public T body { get; set; }

        /// <summary>
        /// 发送方环信用户名
        /// </summary>
        [DataMember]
        public string from { get; set; }

        /// <summary>
        /// 接收方环信用户名
        /// </summary>
        [DataMember]
        public List<string> to { get; set; }

        /// <summary>
        /// 环信消息id
        /// </summary>
        [DataMember]
        public string id { get; set; }

        /// <summary>
        /// 发送状态
        /// </summary>
        [DataMember]
        public string status { get; set; }

        /// <summary>
        /// 发送时间
        /// </summary>
        [DataMember]
        public long time { get; set; }

        /// <summary>
        /// 聊天类型
        /// </summary>
        [DataMember]
        public string type { get; set; }

        /// <summary>
        /// 扩展属性
        /// </summary>
        [DataMember]
        public IDictionary<string, object> ext { get; set; }
    }
}
